/**
 * @File   : index.js
 * @Author : xue.xiaoBing
 * @Date   : 2021/04/12
 * @Desc   : 项目入口
 **/


import React from "react";
import ReactDOM from "react-dom";
import {Provider} from "react-redux";
import {BrowserRouter as Router} from "react-router-dom";

import Routers from "./Routers";
import store from "./redux/store";

/**
 * ant design react css
 * **/
import "antd/dist/antd.css";
import moment from "moment";
import "moment/locale/zh-cn";
import {ConfigProvider} from "antd";
import zh_CN from "antd/lib/locale-provider/zh_CN";

/**
 * mdb react css
 * **/
// import "@fortawesome/fontawesome-free/css/all.min.css";
// import "bootstrap-css-only/css/bootstrap.min.css";
// import "mdbreact/dist/css/mdb.css";

moment.locale('zh-cn');

class App extends React.Component {

  render() {
    return (
      <Provider store={store}>
        <ConfigProvider locale={zh_CN}>
          <Router>
            <Routers/>
          </Router>
        </ConfigProvider>
      </Provider>
    )
  }
}

ReactDOM.render(<App/>, document.getElementById('root'));
